package com.spark.invoicings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 盘点表
 * 
 * @author sunyan
 * @email sunyan@gmail.com
 * @date 2024-06-13 11:15:03
 */
@Data
@TableName("t_inventory_inventorys")
public class Inventorys implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 盘点ID
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**
	 * 仓库ID
	 */
	private Integer warehouseId;
	/**
	 * 商品ID
	 */
	private Integer productId;
	/**
	 * 账面数量
	 */
	private Integer bookQuantity;
	/**
	 * 盘点数量
	 */
	private Integer actualQuantity;
	/**
	 * 盈亏数量
	 */
	private Integer profitLossQuantity;
	/**
	 * 调整原因
	 */
	private String adjustReason;
	/**
	 * 审批人
	 * */
	private String approver;
	/**
	 * 审批时间
	 * */
	private String approvalTime;
	/**
	 * 盘点人员
	 */
	private String personnel;
	/**
	 * 盘点日期
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date inventoryDate;

	private Warehouse warehouse;

	private Product product;

	public String getApprover() {
		return approver;
	}

	public void setApprover(String approver) {
		this.approver = approver;
	}

	public String getApprovalTime() {
		return approvalTime;
	}

	public void setApprovalTime(String approvalTime) {
		this.approvalTime = approvalTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(Integer warehouseId) {
		this.warehouseId = warehouseId;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getBookQuantity() {
		return bookQuantity;
	}

	public void setBookQuantity(Integer bookQuantity) {
		this.bookQuantity = bookQuantity;
	}

	public Integer getActualQuantity() {
		return actualQuantity;
	}

	public void setActualQuantity(Integer actualQuantity) {
		this.actualQuantity = actualQuantity;
	}

	public Integer getProfitLossQuantity() {
		return profitLossQuantity;
	}

	public void setProfitLossQuantity(Integer profitLossQuantity) {
		this.profitLossQuantity = profitLossQuantity;
	}

	public String getAdjustReason() {
		return adjustReason;
	}

	public void setAdjustReason(String adjustReason) {
		this.adjustReason = adjustReason;
	}

	public String getPersonnel() {
		return personnel;
	}

	public void setPersonnel(String personnel) {
		this.personnel = personnel;
	}

	public Date getInventoryDate() {
		return inventoryDate;
	}

	public void setInventoryDate(Date inventoryDate) {
		this.inventoryDate = inventoryDate;
	}

	public Warehouse getWarehouse() {
		return warehouse;
	}

	public void setWarehouse(Warehouse warehouse) {
		this.warehouse = warehouse;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
}
